package cn.myjerry.sort.refType;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class GoodsApp {
	public static void main(String[] args) {
		List<Goods> list = new ArrayList<Goods>();
		list.add(new Goods("衬衣", 50, 400));
		list.add(new Goods("外套", 100, 600));
		list.add(new Goods("裤子", 80, 300));
		System.out.println("排序前："+list);
		//Collections.sort(list, new GoodsPriceComp());
		Collections.sort(list, new GoodsfavComp());
		System.out.println("排序后："+list);
	}
}
